<template>
  <div @click="goUrl">btn</div>
</template>
<script lang="ts" setup>
import {useRouter} from "vue-router";

const router = useRouter()
 function goUrl() {
   router.push({ path: "/login" });
 }
</script>

<style scoped>

</style>